package com.fujin.gulimall.cart.service;

import com.fujin.gulimall.cart.vo.CartItemVo;
import com.fujin.gulimall.cart.vo.CartVo;

import java.util.concurrent.ExecutionException;

/**
 * @title: CartService
 * @Author uIn
 * @Date: 2022/3/16 22:18
 * @Version 1.0
 */
public interface CartService {
    CartItemVo addCart(Long skuId, Integer num) throws ExecutionException, InterruptedException;

    CartItemVo getCartItem(Long skuId);

    CartVo getCart() throws ExecutionException, InterruptedException;

    void clearCart(String cartKey);

}
